<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="mdao" class="dao.MemberDAO"/>
<%
	request.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>마이 바티스 3</title>
</head>
<body>
<h1>마이바티스3</h1>
<table border="1" width="85%">
	<tr>
		<td>번호</td><td>아이디</td>
		<td>비밀번호</td><td>이름</td>
		<td>가입일</td>
	</tr>
	<c:forEach var="m" items="${mdao.listMember() }">
	<tr>
		<td>${m.mno }</td><td><a href="view.jsp?mno=${m.mno}">${m.uid }</a></td>
		<td>${m.pwd }</td><td>${m.name }</td>
		<td>${m.rdate }</td>
	</tr>
	
	</c:forEach>
</table>
</body>
</html>